import 'package:lai_zhan/common/model/shopResult/shop_result.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:redux/redux.dart';

/**
 * 店铺信息Redux
 */

final ShopReducer = combineReducers<List<ShopResult>>([TypedReducer<List<ShopResult>,LoadMoreEventAction>(_loadMore)]);

List<ShopResult> _loadMore(List<ShopResult> list,action) {
  if(action.list!=null) {
    list.addAll(action.list);
  }
  return list;
}

class LoadMoreEventAction {
  final List<ShopResult> list;
  LoadMoreEventAction({this.list});
}